package com.anycl.customer.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.StringUtils;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginVo {
    private String username;
    private String password;

    public boolean validate() {
        return !StringUtils.isEmpty(username) && !StringUtils.isEmpty(password);
    }
}
